export interface SocPost {
    postId: string | null,
    userId: string | null,
    bardId: string,
    schoolId: string,
    title: string,
    content: string,
    /**
     * 范围（0公开，1本校，2仅好友，3私有）
     */
    postRange: number,
    status: number,
    synopsis: string,//简介
    likes: number,
    createdTime: Date | null,
    updateTime: Date | null
}

export interface SocPostCreateDTO extends SocPost {
    uploadFileList: string[],
    tags: string[]
}
/**
 * 帖子文件类型
 */
export interface SocPostFile {
    fileId: number | null,
    postId: number,
    fileUrl: string,
    fileType: string,
    createTime: string
}

/**
 * 帖子显示的vo类型
 */
export interface SocPostItemVO extends SocPost {
    avatar: string,
    userName: string,
    likes: number
    remarks: number
    files: SocPostFile[]
}

export interface SocPostReplies {
    replyId: string | null,
    postId: string | null,
    userId: string | null,
    bardId: string,
    schoolId: string,
    content: string,
    status: number,
    createdTime: Date | null,
    updateTime: Date | null
}
export interface SocPostInfoVO extends SocPostItemVO{
    replies:SocPostReplies[]
}

export interface SocPostTags{
    tagId?:number,
    tagName:string,
    categoryId:number |null,
    description:string,
    createTime?:Date,
}
export interface SocPostCategory{
    categoryId?:number,
    name:string,
    description:string,
    createTime?:Date,
    icon:string,
    level:number
}
